package com.relytosoft.mizar.analyze.structure.services.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.relytosoft.mizar.analyze.structure.api.entity.AyStructureTask;
import com.relytosoft.mizar.analyze.structure.api.pojo.dto.AyStructureTaskUpdateDto;
import com.relytosoft.mizar.analyze.structure.api.pojo.query.AyStructureTaskQuery;
import com.relytosoft.mizar.analyze.structure.api.pojo.vo.AyStructureTaskVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Author: zyc
 * @version: v1.0
 * @description: com.relytosoft.mizar.analyze.structure.services.mapper
 * @Date: 2022/5/12 16:32
 */
@Repository
@Mapper
public interface AyStructureTaskMapper extends BaseMapper<AyStructureTask> {


    /**
     * 修改结构化分析任务
     *
     * @param ayStructureTaskUpdateDto
     */
    void updateStructureTask(@Param("ayStructureTaskUpdateDto") AyStructureTaskUpdateDto ayStructureTaskUpdateDto);


    /**
     * 分页查询结构化分析任务
     *
     * @param page
     * @param ayStructureTaskQuery
     * @return
     */
    Page<AyStructureTaskVo> selectPageTaskList(@Param("page") Page<AyStructureTaskVo> page, @Param("ayStructureTaskQuery") AyStructureTaskQuery ayStructureTaskQuery);

    /**
     * 查询结构化分析主任务ID
     *
     * @param
     * @return
     */
    Integer selectStructureTaskId(@Param("name") String name);

}
